package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.NewCase;
import cn.wolfcode.crm.query.impl.NewCaseQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewCaseMapper {
    int deleteByPrimaryKey(Long id);

    int insert(NewCase record);

    NewCase selectByPrimaryKey(Long id);

    List<NewCase> selectAll();

    int updateByPrimaryKey(NewCase record);

    int queryForCount(NewCaseQuery qo);

    List<NewCase> queryForList(NewCaseQuery qo);


    void changeState(@Param("id") Long id, @Param("state") int i);
}